import * as R from "ramda";
function pipe(){
  return async function(ctx:Record<string,any>,next:Function){
    ctx.paylod = R.keys(ctx.payload).map(key=>{
      if(R.isEmpty(ctx.payload[key])){
        delete ctx.payload[key]
      }
    })
    await next()
  }
}
export default pipe;